﻿using OD.ProjectCustomizationTool.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OD.ProjectCustomizationTool.Tools
{
    internal sealed class StyleCopCustomizer : ProjectUpdaterFromQualityFileBase
    {
        protected override string QualityFileName
        {
            get { return Properties.Resources.SettingsStyleCopFileName; }
        }

        protected override void InternalCreateQualityFile()
        {
            this.CopyFile(this.ResourceQualityFileFullPath, this.QualityFileFullPath);
        }

        protected override void InternalUpdate()
        {
            this.SetProjectProperty(Properties.Resources.SourceAnalysisOverrideSettingsFileProjectProperty, this.RelativePathToQualityFile);
            this.AddItemAsLink(Properties.Resources.SourceAnalysisOverrideSettingsFileProjectProperty, this.RelativePathToQualityFile);
        }
    }
}
